import request from '@/utils/request.js'
// 根据文章id查询点击量和评论量信息
export const getHidAndComment = (articleId) => {
    return request.post('/statistic/getStatistic?articleId='+articleId);
}

// 根据文章id更新点击量
export const HitUpdateService = (params) => {
    return request.post('/statistic/updateHits',params);
}
// 根据文章id更新点击量
export const CommentsUpdateService = (params) => {
    return request.post('/statistic/updateComments',params);
}
// 统计文章热度信息
export const statisticListService = () => {
    return request.get('/statistic/getStatistic');
}
